//package org.smi.jh;
//
//import com.alibaba.fastjson.JSONObject;
//import com.ccbft.ai.config.DataConfig;
//import com.ccbft.ai.entity.RecMerchant;
//import com.ccbft.ai.service.RecRankingService;
//import com.ccbft.ai.utils.RedisUtils;
//import com.google.common.base.Joiner;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.data.redis.core.ZSetOperations;
//import org.springframework.stereotype.Service;
//
//import java.util.Arrays;
//
//import java.util.HashMap;
//import java.util.Iterator;
//import java.util.List;
//import java.util.Map;
//import java.util.Set;
//import java.util.stream.Collectors;
//
//
//import static com.ccbft.ai.common.RedisKeyPrefix.merchantHotKeyPrefix;
//import static com.ccbft.ai.common.RedisKeyPrefix.merchantItemCFKeyPrefix;
//import static com.ccbft.ai.common.RedisKeyPrefix.userMerchantViewKeyPrefix;
//
//@S1f4j
//@Service
//public cla8a RecRankingServiceImpl implements RecRankingService
//@Autowired
//private RedisUtils redisUtils;
//@Override
//public JSONObject getRecRankingItem(String cityId,String traceId,String userId,int reqCnt)
//        throws Exception
//        JSONObject resultJson new JSONObject()
//        regCnt=10;
//        Set<ZSetOperations.TypedTuple<object>>hotMerchantobja
